using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
using Qmtq.Qmtq;

namespace Qmtq.EntityFrameworkCore
{
    [ConnectionStringName(QmtqDbProperties.ConnectionStringName)]
    public class QmtqDbContext : AbpDbContext<QmtqDbContext>, IQmtqDbContext
    {
        /* Add DbSet for each Aggregate Root here. Example:
         * public DbSet<Question> Questions { get; set; }
         */
        public DbSet<tqmtq100> tqmtq100s { get; set; }

        public QmtqDbContext(DbContextOptions<QmtqDbContext> options) 
            : base(options)
        {

        }

        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);

            builder.ConfigureQmtq();
        }
    }
}
